package com.bw.zh.view

import android.os.Bundle
import android.view.Gravity.RIGHT
import com.bw.zg2.base.BaseActivity
import com.bw.zg2.viewmodel.HomeViewModel
import com.bw.zh.R
import com.bw.zh.databinding.ActivityGoodsBinding

class GoodsActivity : BaseActivity<HomeViewModel, ActivityGoodsBinding>(R.layout.activity_goods) {
    override fun initData() {
    }

    override fun initView(savedInstanceState: Bundle?) {
        intent.getStringExtra("title")

        dataBinding.tvTitle.text = intent.getStringExtra("title")

        dataBinding.imgMore.setOnClickListener {
            //打开右侧布局
            dataBinding.drawer.openDrawer(RIGHT)
        }
    }

}